home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windows News 2005 November
/
WNnov2005.iso
/
Windows
/
Indispensables
/
Picture Pro
/
4798_eval.exe
/
bin\vae.vobj
< prev
next >
Wrap
Text File
|
2002-05-13
|
5KB
|
227 lines
//startx 576
//starty 395
//by VAS1.54
object vaestart:Frame
{
predefine object fw:FileView;
predefine object bottomframe:Frame
{
predefine object OK_BUTTON:ButtonText
{
predefine func OnButtonActivate();
}
predefine object CANCEL_BUTTON:ButtonText
{
predefine func OnButtonActivate();
}
}
with (root)
{
app_style = (NoEscQuit,SaveRegistry);
}
width=640p;
height=480p;
//bkg_color=(80,120,207);
layout=(Vertical);
hmargin=5p;
vmargin=5p;
x=Center;
y=Center;
//bkg_style = (NoClient);
draw_style=(WinMoveSash,TopLevel);
object background: BorderImage
{
top_border=26p;
left_border=6p;
right_border=6p;
bottom_border=6p;
pixmap="background.jpg";
}
object logo: BorderImage
{
x = 4p;
y = 4p;
draw_style= (NonClient,PickDisable);
pixmap="logo.jpg";
}
object wtitle: Label
{
draw_style= (NonClient,PickDisable);
x = 32p;
y = 7p;
color = (0,0,80);
font_weight = Bold;
text="Visviva Player - (Please select the \".vexe\" or \".vobj\" file to play)";
}
object fw:FileView
{
style=(ColumnShow);
width=626 pixel;
height=414 pixel;
border_style=Emboss;
layout=(UseMaxW,UseMaxH);
bkg_color = white;
hmargin=0p;
vmargin=0p;
x=0p;
y=0p;
filter=".vexe,.vobj";
draw_style=(Group);
enter()
{
s:String;
s=GetRegistry("VisvivaPlayer","VisvivaPlayer","startfoler");
if (!PathAvailable(s))
{
s=GetFolder(12); //AppData , in order to compatiable with the vae version before 2.02
path=s+"\\visviva";
}
else path=s;
}
func SavePath()
{
s:Strings=GetSelectedFiles();
if(s.Length()>=1)
{
folder:String=GetParentPath(s[0]);
SetRegistry("VisvivaPlayer","VisvivaPlayer","startfoler", folder);
}
else
{
s=GetSelectedFiles(True);
if(s.Length()>=1)
{
SetRegistry("VisvivaPlayer","VisvivaPlayer","startfoler", s[0]);
}
}
}
func OnFileActivated(file:String[])
{
if(file.Length()>=1)
{
vae_path:String;
vae_path=GetFolder(VAE);
folder:String=GetParentPath(file[0]);
SetRegistry("VisvivaPlayer","VisvivaPlayer","startfoler", folder);
LaunchApp(vae_path+"\\bin\\vae.exe", "-p "+file[0]);
Quit();
}
}
func OnFileSelected(file:String[])
{
bottomframe.OK_BUTTON.style = ();
bottomframe.OK_BUTTON.Update();
}
func OnSelectChanged()
{
bottomframe.OK_BUTTON.style = (Disabled);
bottomframe.OK_BUTTON.Update();
}
};
object bottomframe:Frame
{
width=626p;
height=52p;
border_width=0p;
layout=(FixedY,UseMaxW,AttachBottom);
hmargin=0p;
vmargin=0p;
hspacing=0p;
vspacing=0p;
x=0p;
y=414p;
object OK_BUTTON:ButtonText
{
width=100p;
x=80p;
y=13p;
style = (Disabled);
draw_style = (PopHint);
info = "Play the file";
shape = Push;
text = "Play";
func OnButtonActivate()
{
s:Strings=fw.GetSelectedFiles();
if(s.Length()>=1)
{
vae_path:String;
vae_path=GetFolder(VAE);
folder:String=GetParentPath(s[0]);
SetRegistry("VisvivaPlayer","VisvivaPlayer","startfoler", folder);
LaunchApp(vae_path+"\\bin\\vae.exe", "-p "+s[0]);
Quit();
}
else
{
}
}
};
object HOME_BUTTON:ButtonText
{
width=100p;
x=220p;
y=13p;
draw_style = (PopHint);
info = "Go to Visviva Player's Home Directory";
shape = Push;
text = "Home";
func OnButtonActivate()
{
s:String=GetFolder(12); //AppData , in order to compatiable with the vae version before 2.02
fw.path=s+"\\visviva";
}
};
object CANCEL_BUTTON:ButtonText
{
width=100p;
x=360p;
y=13p;
draw_style = (PopHint);
info = "Exit Visviva Player";
shape = Push;
text = "Exit";
func OnButtonActivate()
{
fw.SavePath();
Quit();
}
};
object :ButtonIcon
{
width=28p;
height=28p;
x=580p;
y=14p;
draw_style = (PopHint);
info = "Trash the selected file or foler";
focus_icon = RecycleBin;
func OnButtonActivate()
{
s:Strings=fw.GetSelectedFiles(True);
if(s.Length()>=1)
{
if( DeleteFile(s[0])==True)
fw.path = GetParentPath(s[0]);
}
}
};
};
object :Button
{
width=16p;
height=16p;
x=620p;
y=5p;
draw_style = (CursorSensitive,NonClient,PopHint);
info = "Close Visviva Player";
object gray_image:Image { pixmap="closebtn.jpg"; transparency=0.3; };
object focus_image:Image { pixmap="closebtn.jpg"; };
func OnButtonActivate()
{
fw.SavePath();
Quit();
}
};
};